#include "include/Table.h"

int main()
{
	Grammar g;
	g.init();
	g.extent();
	g.cal_First();

	DFA dfa(g);
	dfa.cal_dfa();
	dfa.print_info();

	Table predict(dfa);
	predict.cal_table();
	predict.print_table();

	std::string input = "2+(1+2.5)^2*2=";
	predict.predict(input);

	return 0;
}